//
//  DutyListTableViewCell.m
//  MobileOffice
//
//  Created by jjkj on 16/10/31.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "DutyListTableViewCell.h"

@implementation DutyListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.userInteractionEnabled=YES;
        _headImageView=[MyControl creatImageViewWithFrame:CGRectMake(10, 10, 44, 44) imageName:nil];
        [self.contentView addSubview:_headImageView];
        
        _myTitle=[MyControl creatLabelWithFrame:CGRectMake(_headImageView.x+_headImageView.width+10, 20, 150, 20) text:@""];
        _myTitle.textColor=[UIColor blackColor];
        _myTitle.font=FONT_17;
        [self.contentView addSubview:_myTitle];
        
        _lineLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 63, IPHONE_WIDTH, 1)];
        _lineLabel.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:_lineLabel];
        self.contentView.width=IPHONE_WIDTH;
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
